﻿using SqlSugar;
using System;

namespace BCGM.MedicalWisdom.Model.ViewModels.Order
{
    /// <summary>
    /// 药品购物车
    /// </summary>
    public class DrugCarDto
    {
        /// <summary>
        /// Desc:用户编号
        /// Default:
        /// Nullable:False
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// Desc:药品主键
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DrugId { get; set; }

        /// <summary>
        /// Desc:药品规格外键
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? DrugSkuId { get; set; }

        /// <summary>
        /// Desc:药品下单数量
        /// Default:
        /// Nullable:False
        /// </summary>
        public int DrugCarNum { get; set; }

        /// <summary>
        /// Desc:购物车添加时间
        /// Default:
        /// Nullable:False
        /// </summary>
        public DateTime CreateTime { get; set; }= DateTime.Now;
    }
}
